from repositories.adminuser_repo import AdminUserRepo

class AdminUserService:
    @staticmethod
    def login(username,password):
       adminuser =  AdminUserRepo.find_by_username(username)
       if not adminuser:
           return False
       store_password = adminuser.password
       if store_password != password:
           return False
       return True